package com.charles.seckillapi.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Charles-H
 * 
 * 订单表
 */
public class SysOrder implements Serializable {
    
    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    private String order_id;

    /**
     * 客户id
     */
    private Long user_id;

    /**
     * 产品id
     */
    private Long good_id;

    /**
     * 订单状态 (0:未支付; 1: 已支付)
     */
    private String status;

    /**
     * 创建时间
     */
    private Date create_time;

    /**
     * 支付时间
     */
    private Date pay_time;

    public SysOrder() {
    }

    public SysOrder(String order_id, Long user_id, Long good_id, String status, Date create_time, Date pay_time) {
        this.order_id = order_id;
        this.user_id = user_id;
        this.good_id = good_id;
        this.status = status;
        this.create_time = create_time;
        this.pay_time = pay_time;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public Long getGood_id() {
        return good_id;
    }

    public void setGood_id(Long good_id) {
        this.good_id = good_id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getPay_time() {
        return pay_time;
    }

    public void setPay_time(Date pay_time) {
        this.pay_time = pay_time;
    }

    @Override
    public String toString() {
        return "SysOrder{" +
                "order_id='" + order_id + '\'' +
                ", user_id=" + user_id +
                ", good_id=" + good_id +
                ", status='" + status + '\'' +
                ", create_time=" + create_time +
                ", pay_time=" + pay_time +
                '}';
    }
}
